package com.zzb.myInterface;

public class JavaTeacher extends Employee{

    @Override
    public String toString() {
        return "JavaTeacher{" +
                "name='" + getName() + '\'' +
                ", sex='" + getSex() + '\'' +
                ", age=" + getAge() +
                "}";
    }

    @Override
    public void work() {
        System.out.println("我是java讲师，讲java课");


    }
}
